package com.fengycx.feign;

import com.fengycx.constants.Constants;
import com.fengycx.fallback.DriverHbaseGeoApiFallbackFactory;
import com.fengycx.pojo.vo.PointVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.Valid;
import java.util.List;

@FeignClient(value = Constants.Remote.SERVICE_BIGDATA,contextId = "DriverHbaseGeoApi",fallbackFactory = DriverHbaseGeoApiFallbackFactory.class)
public interface DriverHbaseGeoApi {


    @GetMapping("/getDriverLocationList/{orderNo}")
    List<PointVo> getDriverGeoList(@PathVariable("orderNo") @Valid  String orderNo);

}
